<?php
class TagEditWidget extends YWidget{
	public $tags = null;
	public $name = null;
	public $tips = null;
	public function run(){
		$this->load_resource();
		
		$this->cs->registerScript($this->id,
'init_tag_edit_widget("#' . $this->id . '", "' . $this->name . '");' 
		);
		$this->render($this->class_name . '/' . $this->tpl, array(
			'tags' 	=> $this->tags,
			'id'	=> $this->id,
			'name'	=> $this->name,
			'tips'	=> $this->tips
		));
	}
}

?>